import { useMount } from 'ahooks'
import { useRef } from 'react'

const Test = () => {
  const ws = useRef<WebSocket | null>(null)

  useMount(() => {
    console.log(123)
    const ws = new WebSocket('/ws/admin/websocket/123')
    console.log(ws)
  })

  return <div></div>
}
export default Test
